package com.hlpedu.mapper;

import com.hlpedu.pojo.Order;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper {
    /**
     * 根据user_id查询用户对应的订单列表
     * @param userId
     * @return
     */
    @Select("select id,ordersn from t_order where user_id=#{userId}")
    List<Order> findOrderInfoById(Integer userId);
}
